/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * IListarPrecios.java
 *
 * Created on 09-jul-2012, 17:21:53
 */
package Test;

import javax.swing.table.DefaultTableModel;

/**
 *
 * @author myguel
 */
public class IListarPrecios extends javax.swing.JInternalFrame {

    /** Creates new form IListarPrecios */
    public IListarPrecios() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        splitPane = new javax.swing.JSplitPane();
        scrollLeft = new javax.swing.JScrollPane();
        treeMateriales = new javax.swing.JTree();
        pnlTabla = new javax.swing.JPanel();
        lblTitulo = new javax.swing.JLabel();
        scrollRight = new javax.swing.JScrollPane();
        tablaPrecios = new javax.swing.JTable();
        pnlBoton = new javax.swing.JPanel();
        btnIzq = new javax.swing.JButton();

        setClosable(true);
        setIconifiable(true);
        setMaximizable(true);
        setResizable(true);
        setTitle("Lista de Precios");

        splitPane.setDividerLocation(200);
        splitPane.setDividerSize(0);

        treeMateriales.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                treeMaterialesMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                treeMaterialesMouseReleased(evt);
            }
        });
        scrollLeft.setViewportView(treeMateriales);

        splitPane.setLeftComponent(scrollLeft);

        pnlTabla.setLayout(new java.awt.BorderLayout());

        lblTitulo.setBackground(new java.awt.Color(175, 200, 222));
        lblTitulo.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        lblTitulo.setText("MATERIAL");
        lblTitulo.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 5, 1, 1));
        lblTitulo.setOpaque(true);
        pnlTabla.add(lblTitulo, java.awt.BorderLayout.PAGE_START);

        tablaPrecios.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        scrollRight.setViewportView(tablaPrecios);

        pnlTabla.add(scrollRight, java.awt.BorderLayout.CENTER);

        pnlBoton.setLayout(new javax.swing.BoxLayout(pnlBoton, javax.swing.BoxLayout.LINE_AXIS));

        btnIzq.setMaximumSize(new java.awt.Dimension(20, 20));
        btnIzq.setMinimumSize(new java.awt.Dimension(20, 20));
        btnIzq.setPreferredSize(new java.awt.Dimension(20, 20));
        btnIzq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnIzqActionPerformed(evt);
            }
        });
        pnlBoton.add(btnIzq);

        pnlTabla.add(pnlBoton, java.awt.BorderLayout.LINE_START);

        splitPane.setRightComponent(pnlTabla);

        getContentPane().add(splitPane, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void treeMaterialesMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_treeMaterialesMousePressed
// TODO add your handling code here:
}//GEN-LAST:event_treeMaterialesMousePressed

private void treeMaterialesMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_treeMaterialesMouseReleased
// TODO add your handling code here:
}//GEN-LAST:event_treeMaterialesMouseReleased

private void btnIzqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIzqActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnIzqActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnIzq;
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JPanel pnlBoton;
    private javax.swing.JPanel pnlTabla;
    private javax.swing.JScrollPane scrollLeft;
    private javax.swing.JScrollPane scrollRight;
    private javax.swing.JSplitPane splitPane;
    private javax.swing.JTable tablaPrecios;
    private javax.swing.JTree treeMateriales;
    // End of variables declaration//GEN-END:variables
}
